﻿using SqlSugar;

namespace PMIS.WebApi.Model
{
    [SugarTable("sys_data_dict", TableDescription = "数据字典")]
    public class DataDict: BaseModel
    {
        [SugarColumn(ColumnDescription = "ID", Length = 30, IsPrimaryKey = true)]
        public string Id { get; set; }

        //e.g. Gender
        [SugarColumn(ColumnDescription = "类别", Length = 30)]
        public string? DictType { get; set; }

        [SugarColumn(ColumnDescription = "排序")]
        public int? Sort { get; set; }

        //e.g. 0， 1
        [SugarColumn(ColumnDescription = "键值")]
        public int? DictKey { get; set; }

        //e.g. 男， 女
        [SugarColumn(ColumnDescription = "名称", Length = 30)]
        public string DictName { get; set; }

        [SugarColumn(ColumnDescription = "描述", IsNullable = true)]
        public string Remark { get; set; }
    }
}
